package org.cyk.api

import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("/test")
class TestApi {

    @GetMapping
    fun hi(str: String?): String {
        str?.let {
            println("收到不为空的参数: $str")
        }
        return "ok~"
    }

}